﻿<?xml version="1.0"?>
<xs:schema xmlns:tns="http://dyncrmmessagingintegration.codeplex.com/2013/Messages" elementFormDefault="qualified" targetNamespace="http://dyncrmmessagingintegration.codeplex.com/2013/Messages" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:complexType name="Message">
    <xs:sequence>
      <xs:element  name="MessageName" minOccurs="1" maxOccurs="1" nillable="false" type="xs:string" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="NewCustomer">
    <xs:complexContent>
      <xs:extension base="tns:Message">
        <xs:sequence>
          <xs:element minOccurs="1" maxOccurs="1" name="FirstName" nillable="false" type="xs:string" />
          <xs:element minOccurs="1" maxOccurs="1" name="LastName" nillable="false" type="xs:string" />
          <xs:element minOccurs="1" maxOccurs="1" name="MobilePhone" nillable="false" type="xs:string" />
          <xs:element minOccurs="1" maxOccurs="1" name="Email" nillable="false" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:complexType name="NewCompetitor">
    <xs:complexContent>
      <xs:extension base="tns:Message">
        <xs:sequence>
          <xs:element minOccurs="1" maxOccurs="1" name="Name" nillable="false" type="xs:string" />
          <xs:element minOccurs="1" maxOccurs="1" name="WebSiteURL" nillable="false" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:element name="NewCustomer" nillable="true" type="tns:NewCustomer" />
  <xs:element name="NewCompetitor" nillable="true" type="tns:NewCompetitor" />
  
</xs:schema>